<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>location相关的</title>
</head>
<body>
    <script>
        //location属于window的属性
        //window.location.href='http://www.baidu.com';
        //页面刷新
        //window.location.reload();
        //搜索协议+域名+"?"后面的内容?uid=10&cid=3&gid=20
        //http://www.baidu.com/index.html?uid=10&cid=3&gid=20
        let href = window.location.search;
        console.log(href);//?uid=10&cid=3&gid=20

        //出现的



    </script>
</body>
</html>